package com.kfm.pm;

public class Test {

    public static void main(String[] args) {
        Vehicle vehicle = new Vehicle("特斯拉", 2023);
        vehicle.displayInfo();
        Vehicle car = new Car("宝马", 2023, 2);
        car.displayInfo();
        Motorcycle motorcycle = new Motorcycle("宝马", 2023, false);
        motorcycle.displayInfo();
    }
}
